import { ValueArrayData } from '../base-data';


/**
 * 字符串集合类型数据
 */
class StringArrayData extends ValueArrayData<string>{

    protected itemEqual(a: string, b: string): boolean {
        return a === b;
    }

    protected generate(from: string[]): string[] {
        return [...from];
    }

    protected copy(targetContainer: string[][], source: string[]): void {
        targetContainer[0].length = 0;
        targetContainer[0].push(...source);
    }

}


export { StringArrayData };